<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class DemoArticleCategory extends Model
{
    protected $table = 'demo_article_category';

    public function article()
    {
        return $this->belongsTo('App\Models\DemoArticle','article_id','id');
    }

    public function category()
    {
        return $this->belongsTo('App\Models\DemoCategory','category_id','id');
    }
}
